package com.yang.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class UtilsText {
    public static String change(InputStream inputStream)throws IOException {

        BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream,"utf-8"));//转成utf-8格式
        StringBuilder response = new StringBuilder();
        String line;
        while((line=reader.readLine())!=null){
            response.append(line);
        }

        return response.toString();
    }

}
